package com.victor.bookretail.common;

import lombok.Getter;

@Getter
public enum ResultCode {
    SUCCESS(2000, "success"),
    UNKNOWN_ERROR(4000, "error"),
    PARAMETER_ERROR(4001, "parameter error"),
    FAILED_CREATE_ORDER(4002, "Failed to create order"),
    FAILED_CREATE_USER(4003, "Failed to create user"),
    USER_EXISTED(4004, "User is existed"),
    FAILED_UPDATE_POINT(4005, "Failed to update user point");

    private int code;
    private String message;

    ResultCode(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
